{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="content-tabs">
			<ol class="breadcrumb">
				<li>
					<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
				</li>
				<li><strong>评价列表</strong></li>
			</ol>
	</div>
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">
      	<div class="form-group" style="padding-left: 20px;">
         	<span class="bspan">商品名称 </span><input type="text" id="goodsname" name="goodsname" placeholder="请输入商品关键字" class="bank"> 
         	<span class="bspan"><button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
        </div>
        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th class="text-center">商品名称</th>
                                <th class="text-center">说说内容</th>
                                <th class="text-center">点赞数</th>
                                <th class="text-center">评论数</th>
                                <th class="text-center">会员名称</th>
                                <th class="text-center">时间</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td class="text-center">{$ad.goods_name}</td>
                        		<td class="text-center">{$ad.content}</td>
                        		<td class="text-center">{$ad.dianzan}</td>
                        		<td class="text-center">{$ad.num}</td>
                        		<td class="text-center">{$ad.name}</td>
                        		<td class="text-center">{$ad.add_time}</td>
                        		<td class="text-center">	
                        			{if condition="$vo.id neq 1"}
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
									{/if}
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}